namespace ext.grid
{
	using System;
	using System.Runtime.CompilerServices;
	using System.Html;
	using System.Collections;
	
	
	/// <summary>
	/// A specialized grid implementation intended to mimic the traditional property grid as typically seen in
	/// development IDEs. Each row in the grid represents a property of some object, and the data is stored
	/// as a set of name/value pairs in {@link Ext.grid.PropertyRecord}s. Example usage:
	/// 
	/// var grid = new Ext.grid.PropertyGrid({
	/// title: &apos;Properties Grid&apos;,
	/// autoHeight: true,
	/// width: 300,
	/// renderTo: &apos;grid-ct&apos;,
	/// source: {
	/// &quot;(name)&quot;: &quot;My Object&quot;,
	/// &quot;Created&quot;: new Date(Date.parse(&apos;10/15/2006&apos;)),
	/// &quot;Available&quot;: false,
	/// &quot;Version&quot;: .01,
	/// &quot;Description&quot;: &quot;A test object&quot;
	/// }
	/// });
	/// </summary>
	/// <htmlSummary>
	/// A specialized grid implementation intended to mimic the traditional property grid as typically seen in
	/// development IDEs. Each row in the grid represents a property of some object, and the data is stored
	/// as a set of name/value pairs in {@link Ext.grid.PropertyRecord}s. Example usage:
	/// &lt;pre&gt;&lt;code&gt;
	/// var grid = new Ext.grid.PropertyGrid({
	/// title: &apos;Properties Grid&apos;,
	/// autoHeight: true,
	/// width: 300,
	/// renderTo: &apos;grid-ct&apos;,
	/// source: {
	/// &quot;(name)&quot;: &quot;My Object&quot;,
	/// &quot;Created&quot;: new Date(Date.parse(&apos;10/15/2006&apos;)),
	/// &quot;Available&quot;: false,
	/// &quot;Version&quot;: .01,
	/// &quot;Description&quot;: &quot;A test object&quot;
	/// }
	/// });
	/// &lt;/code&gt;&lt;/pre&gt;
	/// </htmlSummary>
	/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
	/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
	/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
	/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
	/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
	[ScriptName("PropertyGrid")]
	[ScriptNamespace("Ext.grid")]
	[Imported()]
	public partial class PropertyGrid : ext.grid.EditorGridPanel
	{
		
		#region Constructors
		/// <summary>Constructor</summary>
		public PropertyGrid()
		{
		}
		#endregion
		
		#region Fields
		/// <summary>
		/// An object containing property name/display name pairs.
		/// If specified, the display name will be shown in the name column instead of the property name.
		/// </summary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		[ScriptName("propertyNames")]
		public object PropertyNames;
		
		/// <summary>A data object to use as the data source of the grid (see {@link #setSource} for details).</summary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		[ScriptName("source")]
		public object Source;
		
		/// <summary>
		/// An object containing name/value pairs of custom editor type definitions that allow
		/// the grid to support additional types of editable fields. By default, the grid supports strongly-typed editing
		/// of strings, dates, numbers and booleans using built-in form editors, but any custom type can be supported and
		/// associated with a custom input control by specifying a custom editor. The name of the editor
		/// type should correspond with the name of the property that will use the editor. Example usage:
		/// 
		/// var grid = new Ext.grid.PropertyGrid({
		/// ...
		/// customEditors: {
		/// &apos;Start Time&apos;: new Ext.grid.GridEditor(new Ext.form.TimeField({selectOnFocus:true}))
		/// },
		/// source: {
		/// &apos;Start Time&apos;: &apos;10:00 AM&apos;
		/// }
		/// });
		/// </summary>
		/// <htmlSummary>
		/// An object containing name/value pairs of custom editor type definitions that allow
		/// the grid to support additional types of editable fields. By default, the grid supports strongly-typed editing
		/// of strings, dates, numbers and booleans using built-in form editors, but any custom type can be supported and
		/// associated with a custom input control by specifying a custom editor. The name of the editor
		/// type should correspond with the name of the property that will use the editor. Example usage:
		/// &lt;pre&gt;&lt;code&gt;
		/// var grid = new Ext.grid.PropertyGrid({
		/// ...
		/// customEditors: {
		/// &apos;Start Time&apos;: new Ext.grid.GridEditor(new Ext.form.TimeField({selectOnFocus:true}))
		/// },
		/// source: {
		/// &apos;Start Time&apos;: &apos;10:00 AM&apos;
		/// }
		/// });
		/// &lt;/code&gt;&lt;/pre&gt;
		/// </htmlSummary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		[ScriptName("customEditors")]
		public object CustomEditors;
		
		/// <summary>
		/// An object containing name/value pairs of custom renderer type definitions that allow
		/// the grid to support custom rendering of fields. By default, the grid supports strongly-typed rendering
		/// of strings, dates, numbers and booleans using built-in form editors, but any custom type can be supported and
		/// associated with the type of the value. The name of the renderer type should correspond with the name of the property
		/// that it will render. Example usage:
		/// 
		/// var grid = new Ext.grid.PropertyGrid({
		/// ...
		/// customRenderers: {
		/// Available: function(v){
		/// if(v){
		/// return &apos;Yes&apos;;
		/// }else{
		/// return &apos;No&apos;;
		/// }
		/// }
		/// },
		/// source: {
		/// Available: true
		/// }
		/// });
		/// </summary>
		/// <htmlSummary>
		/// An object containing name/value pairs of custom renderer type definitions that allow
		/// the grid to support custom rendering of fields. By default, the grid supports strongly-typed rendering
		/// of strings, dates, numbers and booleans using built-in form editors, but any custom type can be supported and
		/// associated with the type of the value. The name of the renderer type should correspond with the name of the property
		/// that it will render. Example usage:
		/// &lt;pre&gt;&lt;code&gt;
		/// var grid = new Ext.grid.PropertyGrid({
		/// ...
		/// customRenderers: {
		/// Available: function(v){
		/// if(v){
		/// return &apos;&lt;span style=&quot;color: green;&quot;&gt;Yes&lt;/span&gt;&apos;;
		/// }else{
		/// return &apos;&lt;span style=&quot;color: red;&quot;&gt;No&lt;/span&gt;&apos;;
		/// }
		/// }
		/// },
		/// source: {
		/// Available: true
		/// }
		/// });
		/// &lt;/code&gt;&lt;/pre&gt;
		/// </htmlSummary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		[ScriptName("customRenderers")]
		public object CustomRenderers;
		
		/// <summary>
		/// Fires before a property value changes. Handlers can return false to cancel the property change
		/// (this will internally call {@link Ext.data.Record#reject} on the property&apos;s record).
		/// </summary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		[ScriptName("beforepropertychangeEventName")]
		public const string BeforepropertychangeEventName = "beforepropertychange";
		
		/// <summary>Fires after a property value has changed.</summary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		[ScriptName("propertychangeEventName")]
		public const string PropertychangeEventName = "propertychange";
		#endregion
		
		#region Methods
		/// <summary>
		/// Sets the source data object containing the property data. The data object can contain one or more name/value
		/// pairs representing all of the properties of an object to display in the grid, and this data will automatically
		/// be loaded into the grid&apos;s {@link #store}. The values should be supplied in the proper data type if needed,
		/// otherwise string type will be assumed. If the grid already contains data, this method will replace any
		/// existing data. See also the {@link #source} config value. Example usage:
		/// 
		/// grid.setSource({
		/// &quot;(name)&quot;: &quot;My Object&quot;,
		/// &quot;Created&quot;: new Date(Date.parse(&apos;10/15/2006&apos;)), // date type
		/// &quot;Available&quot;: false, // boolean type
		/// &quot;Version&quot;: .01, // decimal type
		/// &quot;Description&quot;: &quot;A test object&quot;
		/// });
		/// </summary>
		/// <htmlSummary>
		/// Sets the source data object containing the property data. The data object can contain one or more name/value
		/// pairs representing all of the properties of an object to display in the grid, and this data will automatically
		/// be loaded into the grid&apos;s {@link #store}. The values should be supplied in the proper data type if needed,
		/// otherwise string type will be assumed. If the grid already contains data, this method will replace any
		/// existing data. See also the {@link #source} config value. Example usage:
		/// &lt;pre&gt;&lt;code&gt;
		/// grid.setSource({
		/// &quot;(name)&quot;: &quot;My Object&quot;,
		/// &quot;Created&quot;: new Date(Date.parse(&apos;10/15/2006&apos;)), // date type
		/// &quot;Available&quot;: false, // boolean type
		/// &quot;Version&quot;: .01, // decimal type
		/// &quot;Description&quot;: &quot;A test object&quot;
		/// });
		/// &lt;/code&gt;&lt;/pre&gt;
		/// </htmlSummary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		/// <param name="source">The data object</param>
		[ScriptName("setSource")]
		public void SetSource(object source)
		{
			throw new System.Exception("Imported - not implemented");
		}
		
		/// <summary>
		/// Gets the source data object containing the property data. See {@link #setSource} for details regarding the
		/// format of the data object.
		/// </summary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		/// <returns>The data object</returns>
		[ScriptName("getSource")]
		public object GetSource()
		{
			throw new System.Exception("Imported - not implemented");
		}
		
		/// <summary>Removes a property from the grid.</summary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		/// <param name="prop">The name of the property to remove</param>
		[ScriptName("removeProperty")]
		public void RemoveProperty(string prop)
		{
			throw new System.Exception("Imported - not implemented");
		}
		
		/// <summary>Sets the value of a property.</summary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		/// <param name="prop">The name of the property to set</param>
		/// <param name="value">The value to test</param>
		/// <param name="create">True to create the property if it doesn&apos;t already exist. Defaults to &lt;tt&gt;false&lt;/tt&gt;.</param>
		[ScriptName("setProperty")]
		public void SetProperty(string prop, object value, bool create)
		{
			throw new System.Exception("Imported - not implemented");
		}
		
		/// <summary>Sets the value of a property.</summary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		/// <param name="prop">The name of the property to set</param>
		/// <param name="value">The value to test</param>
		[ScriptName("setProperty")]
		public void SetProperty(string prop, object value)
		{
			throw new System.Exception("Imported - not implemented");
		}
		#endregion
		
		#region Events
		/// <summary>
		/// Fires before a property value changes. Handlers can return false to cancel the property change
		/// (this will internally call {@link Ext.data.Record#reject} on the property&apos;s record).
		/// </summary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		[ScriptName("beforepropertychange")]
		public event ext.auto.Delegate_System_Object_And_System_String_And_System_Object_And_System_Object Beforepropertychange;
		
		/// <summary>Fires after a property value has changed.</summary>
		/// <definedin>src\widgets\grid\PropertyGrid.js</definedin>
		[ScriptName("propertychange")]
		public event ext.auto.Delegate_System_Object_And_System_String_And_System_Object_And_System_Object Propertychange;
		#endregion
	}
}
